class CreateMisForos < ActiveRecord::Migration
  def self.up
    create_table "mis_foros", :force => true do |t|
      t.column "foro_id", :integer
      t.column "user_id", :integer
      t.column "updated_at", :datetime
      t.column "estado", :string
    end

    add_index "mis_foros", ["foro_id", "user_id"], :name => "mis_foros_foro_id_index", :unique => true
  end

  def self.down
    remove_index "mis_foros", "foro_id"

    drop_table "mis_foros"
  end
end
